package cn.cs.mapper;

import cn.cs.pojo.AgentInvoice;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AgentInvoiceMapper {

    public AgentInvoice getAgentInvoiceById(@Param(value = "id") String id) throws Exception;

    public AgentInvoice getAgentInvoiceByOrderNum(@Param(value = "orderNum") String orderNum) throws Exception;

    public List<AgentInvoice> getAgentInvoiceListByMap(Map<String, Object> param) throws Exception;

    public Integer getAgentInvoiceCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertAgentInvoice(AgentInvoice agentInvoice) throws Exception;

    public Integer updateAgentInvoice(AgentInvoice agentInvoice) throws Exception;

    public Integer deleteAgentInvoiceById(@Param(value = "id") String id) throws Exception;

}
